Anagram Detection
Time complexity: O(n).
Auxiliary space: O(k), where k is the character set size or number of distinct characters.
Sorting both strings provides O(n log n) time but is usually less efficient.
Case sensitivity, whitespace, Unicode normalization, and punctuation should be specified.